<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" type="image/x-icon" href="{$Think.ADMIN_IMG_URL}favicon.ico">
    <title>Roseonly【一生只爱一人】</title>
    <link rel="stylesheet" href="{$Think.ADMIN_LAYUI_URL}css/layui.css">
    <link rel="stylesheet" href="{$Think.ADMIN_ICON_URL}css/font-awesome.min.css">
    <style>
        body .demo-class .layui-layer-title{background:#a7a7a7; color:#191b20; border: none;}
        /*body .demo-class .layui-layer-btn{border-top:1px solid #ff5722}*/
        /*body .demo-class .layui-layer-btn a{background:#ff5722;}*/
        body .demo-class .layui-layer-btn .layui-layer-btn0{background:#ff5722;border-color: #ff5722;}
    </style>
    <block name="css"></block>
    <script src="{$Think.ADMIN_JS_URL}jquery.min.js"></script>
    <block name = "top_js"></block>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">Roseonly 后台管理</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="fa fa-user-circle-o fa-2x" aria-hidden="true"></i>
                    {$info['account']}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Admin/personInfo')}"><i class="fa fa-address-card-o" aria-hidden="true"></i>&nbsp;&nbsp;基本资料</a></dd>
                    <dd><a href="{:U('Admin/editPassword')}"><i class="fa fa-cog" aria-hidden="true"></i>&nbsp;&nbsp;安全设置</a></dd>
                    <dd id="logout"><a href="javascript:;"><i class="fa fa-sign-out" aria-hidden="true"></i>&nbsp;&nbsp;注&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;销</a></dd>
                </dl>
            </li>
            <!--<li class="layui-nav-item"><a href="javascript:;">注销</a></li>-->
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li id="systemMessage" class="layui-nav-item">
                    <a class="" href="__MODULE__/Index/index"><i class="fa fa-cog" aria-hidden="true"></i>&nbsp;系统信息</a>
                    <!--<dl class="layui-nav-child">-->
                    <!--<dd><a href="javascript:;">列表一</a></dd>-->
                    <!--<dd><a href="javascript:;">列表二</a></dd>-->
                    <!--<dd><a href="javascript:;">列表三</a></dd>-->
                    <!--<dd><a href="">超链 接</a></dd>-->
                    <!--</dl>-->
                </li>
                <li id="goods"  class="layui-nav-item ">
                    <a class="" href="javascript:;"><i class="fa fa-shopping-bag" aria-hidden="true"></i>&nbsp;产品管理</a>
                    <dl class="layui-nav-child">
                        <dd id="goodsShow"><a  href="{:U('Goods/show')}">&nbsp;&nbsp;<i class="fa fa-list" aria-hidden="true"></i>&nbsp;&nbsp;产品列表</a></dd>
                        <!--<dd id="goodsCategory"><a href="__MODULE__/Goods/goodsCategory">&nbsp;&nbsp;<i class="fa fa-database" aria-hidden="true"></i>&nbsp;&nbsp;产品分类</a></dd>-->
                        <dd id="addGoods"><a href="__MODULE__/Goods/addGoods">&nbsp;&nbsp;<i class="fa fa-plus-square-o" aria-hidden="true"></i>&nbsp;&nbsp;产品添加</a></dd>
                        <dd id="category"><a data-method="confirmTrans" href="javascript:;">&nbsp;&nbsp;<i class="fa fa-sort-amount-asc" aria-hidden="true"></i>&nbsp;&nbsp;分类管理</a></dd>
                    </dl>
                </li>
                <li id="user" class="layui-nav-item">
                    <a href="javascript:;"><i class="fa fa-users" aria-hidden="true"></i>&nbsp;用户管理</a>
                    <dl class="layui-nav-child">
                        <dd id="userlist"><a href="{:U('User/userlist')}">&nbsp;&nbsp;<i class="fa fa-list" aria-hidden="true"></i>&nbsp;&nbsp;用户列表</a></dd>
                        <dd id="orderlist"><a href="{:U('Order/userOrders')}">&nbsp;&nbsp;<i class="fa fa-shopping-cart" aria-hidden="true"></i>&nbsp;&nbsp;用户订单</a></dd>
                    </dl>
                </li>

                <if condition="$info['status'] eq 0 ">
                    <li id="auth" class="layui-nav-item">
                        <a href="javascript:;"><i class="fa fa-key" aria-hidden="true"></i>&nbsp;权限管理</a>
                        <dl class="layui-nav-child">
                            <dd id="adminlist"><a href="{:U('Admin/adminList')}">&nbsp;&nbsp;<i class="fa fa-list" aria-hidden="true"></i>&nbsp;&nbsp;管理员列表</a></dd>
                            <dd id="addadmin"><a href="{:U('Admin/updateAdmin')}">&nbsp;&nbsp;<i class="fa fa-plus-square-o" aria-hidden="true"></i>&nbsp;&nbsp;添加管理员</a></dd>
                        </dl>
                    </li>
                </if>
                <!--<li id="about" class="layui-nav-item">
                    <a href="javascript:;">服务管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">新手指南</a></dd>
                        <dd><a href="javascript:;">售后服务</a></dd>
                        <dd><a href="javascript:;">物流配送</a></dd>
                        <dd><a href="javascript:;">关于我们</a></dd>
                    </dl>
                </li>
                <li id="about" class="layui-nav-item">
                    <a href="javascript:;">门店管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">专卖店列表</a></dd>
                        <dd><a href="javascript:;">添加新店</a></dd>
                        <dd><a href="javascript:;">其他</a></dd>
                    </dl>
                </li>-->

                <!--<li class="layui-nav-item"><a href="javascript:;">产品分析</a></li>
                <li class="layui-nav-item"><a href="javascript:;">待增加功能</a></li>-->
            </ul>
        </div>
    </div>
    <div class="layui-body">
    <block name="body"></block>
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © roseonly.com - 一生只爱一人
    </div>
</div>
<script src="{$Think.ADMIN_LAYUI_URL}layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
    layui.use('layer', function() { //独立版的layer无需执行这一句
        var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
        $('#logout').on('click',function(){
            $('#logout:parent').removeClass('layui-show');
            $('#logout').removeClass('layui-this');
            layer.open({
                title:'温馨提示'
                ,skin: 'demo-class'
                ,content: '确认注销？'
                ,btn: ['是的，再见', '不不不']
                ,yes: function(index, layero){
                    //按钮【按钮一】的回调
                    $(location).attr('href', "{:U('Login/logout')}");
//                    $.post("{:U('Login/logout')}");
                    layer.close(index);
                }
                ,btn2: function(index, layero){
                    //按钮【按钮二】的回调

                    layer.close(index);
                    //return false 开启该代码可禁止点击该按钮关闭
                }
                ,cancel: function(){

                    //右上角关闭回调
                    //return false 开启该代码可禁止点击该按钮关闭
                }
            });
        });

    });

//    layui.use('layer',function(){
//        var layer = layui.layer;
//        $('#logout').on('click',function(){
////            {:U('Login/logout')}
//        });
//    });
</script>
<block name="js"></block>
</body>
</html>